package com.refactor.practice.strategy;

public class ChildrenChargeStrategy implements IStrategy {
    @Override
    public double getChargeAmt(int dayRented) {
        double chargeAmt = 1.5;
        if(dayRented > 3) {
            chargeAmt += (dayRented - 3) * 1.5;
        }
        return chargeAmt;
    }
}
